#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@desc: .

@Project ：kuberCloudTest
@File ：urls.py
@Author ：admin
@Date ：2024/3/20 14:41 
"""
from enum import Enum


class CloudResourcesUrls(Enum):
    # 计算规格
    getComputeSpec = '/instanceOffering/query.do'
    startComputeSpec = '/instanceOffering/start.do'
    stopComputeSpec = '/instanceOffering/stop.do'
    deleteComputeSpec = '/instanceOffering/remove.do'
    createComputeSpec = '/instanceOffering/add.do'
    updateComputeSpec = '/instanceOffering/update.do'
    globalShareComputeSpec = '/instanceOffering/shareAll.do'
    globalRecallComputeSpec = '/instanceOffering/callbackAll.do'
    # 云盘规格
    getDiskSpec = '/cloudDiskSpec/query.do'
    createDiskSpec = '/cloudDiskSpec/add.do'
    updateDiskSpec = '/cloudDiskSpec/update.do'
    startDiskSpec = '/cloudDiskSpec/start.do'
    stopDiskSpec = '/cloudDiskSpec/stop.do'
    deleteDiskSpec = '/cloudDiskSpec/delete.do'
    globalShareDiskSpec = '/cloudDiskSpec/shareAll.do'
    globalRecallDiskSpec = '/cloudDiskSpec/callbackAll.do'
    # 镜像
    getMirror = '/mirror/query.do'
    createMirror = '/mirror/add.do'
    createMirrorByUrl = '/mirror/downloadtoadd.do'
    updateMirror = '/mirror/update.do'
    deleteMirror = '/mirror/delete.do'
    startMirror = '/mirror/start.do'
    stopMirror = '/mirror/stop.do'
    syncMirror = '/mirror/sync.do'
    globalShareMirror = '/mirror/share.do'
    globalRecallMirror = '/mirror/upshare.do'
    changeMirrorOwner = '/mirror/changeproject.do'
    getMirrorOwner = '/mirror/getSystemUser.do'
    exportMirror = '/mirror/exportImage.do'
    downloadMirror = '/mirror/downloadImage.do'
    getMountableIso = '/vm/mirror/query.do'
    getMirrorServer = '/mirror/queryIsoServer.do'

    # 网卡操作
    getNetworkCardByVMId = '/networkCard/query.do'
    loadNetworkCard = '/networkCard/create.do'
    unloadNetworkCard = '/networkCard/remove.do'
    getAvailableL3NetworkByVMId = '/networkCard/queryL3Network.do'
    setNetworkCardMac = '/networkCard/addMac.do'
    setNetworkCardQueue = '/networkCard/setNetcardQueue.do'
    setNetworkCardQos = '/networkCard/setQos.do'
    cancelNetworkCardQos = '/networkCard/clearQos.do'
    getAvailableNetworkCardIP = '/networkCard/getIP.do'
    setNetworkCardIP = '/networkCard/setIp.do'

    # 回收站
    getRecycleVm = '/recycleCloudHost/query.do'
    resumeRecycleVm = '/recycleCloudHost/resume.do'
    deleteRecycleVm = '/recycleCloudHost/delete.do'
    getRecycleDisk = '/recycleCloudDisk/query.do'
    resumeRecycleDisk = '/recycleCloudDisk/resume.do'
    deleteRecycleDisk = '/recycleCloudDisk/delete.do'
